package com.bw.module_merchant.adapter

import android.widget.TextView


import com.bw.module_merchant.entity.EnterpriseEntityItem


import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.module_merchant.R


class EnterpriseAdapter : BaseQuickAdapter<EnterpriseEntityItem, BaseViewHolder>(R.layout.item_enterprise) {
    override fun convert(holder: BaseViewHolder, item: EnterpriseEntityItem) {
        holder.getView<TextView>(R.id.enterprise_name).setText(item.name)
        holder.getView<TextView>(R.id.enterprise_type).setText(item.industryType)
        holder.getView<TextView>(R.id.enterprise_message).setText(item.status)
        holder.getView<TextView>(R.id.enterprise_location).setText(item.address)
    }
}